package com.server.mapper;

import com.pojo.entity.Collection;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CollectionMapper {

    public Integer insertCollection(Collection collection);

    public List<Collection> selectAll(Integer userId);

    public Integer deleteCollection(Integer id);

    public List<Collection> selectByTitle(@Param("title") String title, @Param("userId") Integer userId);
}
